<?php
cmspad_import('widget.Widget');
class PasswordWidget extends Widget{
	public function __toString(){
		$html = '<INPUT type="password"';
		if($this->id){
			$html .= ' id="'.$this->id.'"';
		}
		if($this->name){
			$html .= ' name="'.$this->name.'"';
		}
		if($this->class){
			$html .= ' class="'.$this->class.'"';
		}
		if($this->style){
			$html .= ' style="'.$this->style.'"';
		}
		if($this->value){
			$html .= ' value="'.$this->value.'"';
		}
		$html .= '/>';
		return $html;
	}
}
?>